#!/bin/bash

# mkdir -p ~/.config
project="hammerspoon"
URL="https://gitee.com/hevey88/hammerspoon.git"
FOLDER=$HOME"/.config/$project"

if [ ! -d "$FOLDER" ]; then
	git clone --depth=1 "$URL" "$FOLDER"
else
	cd "$FOLDER" || exit
	git pull "$URL"
fi

ln -sf $FOLDER ~/.hammerspoon

bash -c "$FOLDER"/install_config.sh
